﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using AutoAllocService.Map.Models;
using RestEase;

namespace AutoAllocService.Map
{
    public interface ICallCenterApi
    {
        [Get("api/Drivers/GetAvaliableDrviers/{bookingID}")]
        Task<Models.CallCenterResult<List<Models.DriverModel>>> GetAvaliableDrviers([Path] string bookingID);

        [Get("api/alloc/GetBooking/{bookingID}")]
        Task<Models.CallCenterResult<Models.BookingModel>> GetBooking([Path] string bookingID);

        [Get("api/alloc/GetPickupOrder/{poid}")]
        Task<Models.CallCenterResult<Models.OrderModel>> GetPickupOrder([Path] string poid);

        [Post("api/alloc/CreatePickupOrder")]
        Task<Models.CallCenterResult<Models.OrderModel>> CreatePickupOrder([Body] UpdateOrderModel model);

        [Post("api/alloc/UpdatePickupOrder")]
        Task<Models.CallCenterResult<Models.OrderModel>> UpdatePickupOrder([Body] UpdateOrderModel model);
    }
}
